<template>
	<div>
		<view>
			<uni-list>
				<uni-list-item v-for="(item,index) in Data" :key="index" :title="item.caseName"  @click="casebyid(item.caseId)" showArrow clickable></uni-list-item>
			</uni-list>
		</view>
		<!-- <div>
			<button type="primary" @click="tasklist">任务列表</button>
		</div> -->
	</div>
</template>

<script>
let caseTaskVo={"current":1,"pagesize":3}
		export default {
			data() {
				return {
					Data:[
						{
							caseId:'',
							caseName:''
						}
					]
				}
			},
			methods:{
				casebyid(caseId){
					console.log(caseId)
					uni.navigateTo({
						url:'/pages/case/content/casecontent?caseId='+caseId
					})
				},
				schemeEsByIid(){
					uni.request({
					    url: 'http://localhost:7000/case/a/caseList', //仅为示例，并非真实接口地址。
					    data:caseTaskVo,
					    method: 'POST',
					    success: (res) => {
							console.log(res.data)
					        this.Data=res.data.data
							console.log(this.Data)
					    }
					});
				},
				tasklist(){
					
					uni.navigateTo({
						url:'../task/index',
					})
				}
			},
			mounted() {
				this.schemeEsByIid()
			},
			onLoad(obj) {
				caseTaskVo.id=obj.id;
			}
		}
	</script>

<style>
</style>